import requests
import os
from lxml import etree

headers = {
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) '
                  'AppleWebKit/537.36 (KHTML, like Gecko) '
                  'Chrome/91.0.4472.106 Safari/537.36'
}

url = 'https://www.umei.net/meinvtupian/meinvxiezhen/234524.htm'

response = requests.get(url=url, headers=headers)
response.encoding = 'utf-8'
page_text = response.text

tree = etree.HTML(page_text)

src = tree.xpath('//*[@id="ArticleId{dede:field.reid/}"]/p/img/@src')[0]
# src = ''
a_list = tree.xpath('/html/body/div[2]/div[12]/a')
if len(a_list) == 0:
    print('yes')
# a_list = ''
print(f'src: {src}, a_list: {a_list}')

